
 export const subscribeMsg = (tmpIds) => {
  return new Promise((resolve) => {
    wx.requestSubscribeMessage({
      tmplIds: tmpIds,
      success(res) {
        if (res[Object.keys(res)[0]] == 'accept') {
          resolve(true)
        } else {
          resolve(false)
        }
      },
      fail(err) {
        console.log(err)
        resolve(true)
      }
    })
  })
}